package cn.sc.summer.job.config;

import cn.sc.summer.constant.factory.YamlPropertySourceFactory;
import com.aizuda.snailjob.client.starter.EnableSnailJob;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author a-xin
 * @description snailjob配置
 * @belongsProject SummerCloud
 * @belongsPackage cn.sc.summer.job.config
 * @date 2024-11-25  11:37
 */
@EnableSnailJob
@Configuration
@ConditionalOnProperty(prefix = "xxljob", name = "enabled", havingValue = "false")
@PropertySource(value = "classpath:/summer-snail-job.yml", factory = YamlPropertySourceFactory.class)
public class SnailJobConfig {
}
